-- GENERATED SPELL FOR [Damned Soul] --


function spell0_12378(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(13748,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12378', 1000, 1)
end

function spell1_12378(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12378', 3000, 1)
end

function Sorts_12378(pUnit, Event)
local choix_sorts_12378 = math.random(0, 1)
if choix_sorts_12378 == 0 then
pUnit:RegisterEvent('spell0_12378', 1, 1)
end
if choix_sorts_12378 == 1 then
pUnit:RegisterEvent('spell1_12378', 1, 1)
end
end

function mob12378_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12378', math.random(1500, 3000), 1)
end

function mob12378_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12378_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12378_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12378, 1, 'mob12378_Action')
RegisterUnitEvent(12378, 2, 'mob12378_Leave')
RegisterUnitEvent(12378, 3, 'mob12378_Kill')
RegisterUnitEvent(12378, 4, 'mob12378_Die')
